public class NTFTstrategy extends OMStrategy
model, negotiationSession| Constructor and Description |
|---|
NTFTstrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUpdateOM()
Method which specifies when the opponent model may be updated.
|
BidDetails |
getBid(java.util.List<BidDetails> bidsInRange)
Selects a random bid from the best N bids, where N depends on the
domain size.
|
void |
init(NegotiationSession negotiationSession,
OpponentModel model)
Initializes the agent by storing the size of the domain, and checking
if the domain is large.
|
void |
init(NegotiationSession negotiationSession,
OpponentModel model,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Initialize method to be used by the BOA framework.
|
getBid, getBid, setOpponentModelpublic void init(NegotiationSession negotiationSession, OpponentModel model, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
OMStrategyinit in class OMStrategynegotiationSession - state of the negotiation.model - opponent model to which the opponent model strategy applies.parameters - for the opponent model strategy, for example the maximum update time.java.lang.Exception - thrown when initializing the opponent model strategy fails.public void init(NegotiationSession negotiationSession, OpponentModel model)
init in class OMStrategynegotiationSession - state of the negotiation.model - opponent model used in conjunction with this opponent modeling strategy.public BidDetails getBid(java.util.List<BidDetails> bidsInRange)
getBid in class OMStrategyset - of similarly preferred bids.public boolean canUpdateOM()
canUpdateOM in class OMStrategy